Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert some unit tests to integration tests #767

Merged
merged 6 commits into from
Jun 23, 2024

Conversation

Mingun
Copy link
Collaborator

@Mingun Mingun commented Jun 23, 2024

Because unit tests located inside the source files, their are packed in release pack, but integration tests are excluded. By moving tests size of pack is reduced and crate should compile slightly faster because there are less code to process.

Also this PR includes some small refactoring in deserializer which makes code slightly simpler to understand (in prepare to #766).

…check if we need more events for text

Thus, now checking for types of events that relate to the "text" is done in one place, and not in two

(Review in whitespace changes ignored mode)
Those tests does not depend on the internals, so can be tested outside.
This will reduce the size of pack on crates.io
@codecov-commenter
Copy link

codecov-commenter commented Jun 23, 2024

Codecov Report

Attention: Patch coverage is 86.36364% with 3 lines in your changes missing coverage. Please review.

Project coverage is 60.22%. Comparing base (7558577) to head (a24ed89).
Report is 36 commits behind head on master.

Files Patch % Lines
src/reader/state.rs 66.66% 2 Missing ⚠️
src/de/mod.rs 93.75% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #767      +/-   ##
==========================================
- Coverage   61.81%   60.22%   -1.60%     
==========================================
  Files          41       41              
  Lines       16798    16191     -607     
==========================================
- Hits        10384     9751     -633     
- Misses       6414     6440      +26     
Flag Coverage Δ
unittests 60.22% <86.36%> (-1.60%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Mingun Mingun merged commit 649f3d8 into tafia:master Jun 23, 2024
6 checks passed
@Mingun Mingun deleted the move-to-integration branch June 23, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants